/**
 * Created by zhaott on 2017/11/16.
 */
/**
 * http://localhost:3000/?url=http://www.runoob.com&node=%E8%8F%9C%E9%B8%9F
 */
var http=require('http');
var url=require('url');
var util=require('util');
http.createServer(function (req,res) {
    res.writeHead(200,{"Content-Type":"text/plain;charset=utf-8"});
    var parms=url.parse(req.url,true).query;
    res.write('网站名称：'+parms.name);
    res.write('\n');
    res.write('网站URL：'+parms.url);
    res.end();
}).listen(3000);